/*
 * Copyright (c) 2008 Skyon Technology Ltd.
 * All rights reserved.
 *
 * project: ccb-js-eroad
 * create: 2009-2-23 02:03:40
 * cvs: $Id: IntegralCoreServer.java,v 1.1 2010/11/24 07:46:12 dev_cvs Exp $
 */
package cn.batch.daemon;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * 守护进程入口程序
 * 
 * @author xihn
 * @version $Revision: 1.1 $
 */
public class IntegralCoreServer {

	private static final Log logger = LogFactory
			.getLog(IntegralCoreServer.class);

	public static void main(String[] args) {
		
		logger.info("生成配置环境信息");
		Configuration config = null;
		try {
			config = new Configuration();
		} catch (Exception e) {
			logger.error("IntegralCoreServer 初始化失败", e);
            System.exit(-1);
		}


		/*try {
			Thread riskListener = new Thread(new RiskWarningListener(config));
			riskListener.start();
		} catch (InitException e) {
			logger.error("风险预警批处理任务初始化失败", e);
            System.exit(-1);
		}*/		
		
		/*try {
 		   	Thread riskListener = new Thread(new RiskWarningMonthListener(config));
			riskListener.start();
		} catch (InitException e) {
			logger.error("风险预警(按月)批处理任务初始化失败", e);
			System.exit(-1);
		}*/
		
		/*try {
			Thread loadListener = new Thread(new LoadProcReportListener(config));
			loadListener.start();
		} catch (InitException e) {
			logger.error("装载人行征信信息任务初始化失败", e);
            System.exit(-1);
		}*/
		
		/*try {
 		   	Thread riskListener = new Thread(new RiskWarnMonthRuleCall(config));
			riskListener.start();
		} catch (InitException e) {
			logger.error("风险预警(按月)批处理任务初始化失败", e);
			System.exit(-1);
		}*/
		
	}
}
